#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);
}

Widget::~Widget()
{
    delete ui;
}


void Widget::on_pushButton_clicked()
{
    //获取按钮的几何尺寸（x,y,width,height）
    QRect size=ui->pushButton->geometry();
    qDebug()<<size;
    ui->pushButton->setGeometry(200,200,200,200);

}
